﻿@using Pay.DTO;
@{
    ViewBag.Title = "双旦活动";
    Layout = "~/Views/Shared/_MallLayout.cshtml";
    activity_dto activity = ViewBag.activity;
    List<product_dto> list1 = ViewBag.list1;
    List<product_dto> list2 = ViewBag.list2;
    List<product_dto> list3 = ViewBag.list3;
    List<product_dto> list4 = ViewBag.list4;
    List<product_dto> list5 = ViewBag.list5;

}

<link href="~/Content/css/tokenmall/css/special.css" rel="stylesheet" />
<body class="page-showSpecial">
    <div class="page-christmas relative">
        <span class="rule" id="rule"></span>
        <div class="christmas">
            <div class="block">
                <div class="chrisLeft">
                    <div class="chrisRight flex">
                        <div class="innerBox">
                            <div class="innerBoxCon">
                                @Html.Partial("_PartialChristmas", list1)
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div>
            <img align="top" src="~/Content/css/tokenmall/img/christmas/b1.jpg">
        </div>
        <div class="block">
            <div class="chrisLeft">
                <div class="chrisRight flex">
                    <div class="innerBox">
                        <div class="innerBoxCon">
                            @Html.Partial("_PartialChristmas", list2)
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div>
            <img align="top" src="~/Content/css/tokenmall/img/christmas/b2.jpg">
        </div>
        <div class="block">
            <div class="chrisLeft">
                <div class="chrisRight flex">
                    <div class="innerBox">
                        <div class="innerBoxCon">
                            @Html.Partial("_PartialChristmas", list3)
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div>
            <img align="top" src="~/Content/css/tokenmall/img/christmas/b3.jpg">
        </div>
        <div class="block">
            <div class="chrisLeft">
                <div class="chrisRight flex">
                    <div class="innerBox">
                        <div class="innerBoxCon">
                            @Html.Partial("_PartialChristmas", list4)
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div>
            <img align="top" src="~/Content/css/tokenmall/img/christmas/b4.jpg">
        </div>
        <div class="block">
            <div class="chrisLeft">
                <div class="chrisRight flex">
                    <div class="innerBox">
                        <div class="innerBoxCon">
                            @Html.Partial("_PartialChristmas", list5)
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 置顶、购物车 -->
        <a class="goTop">
            <img src="~/Content/css/tokenmall/img/icon/goTop.png">
        </a>

        <div class="mask"></div>
        <!-- 活动规则弹窗 -->
        <div class="activity_modal" id="activity_modal">
            <div class="content">
                <div class="title"></div>
                <div class="rulesbg">
                    <div class="rules">规则说明</div>
                    <div class="activity_rules">
                        <div class="msg">
                            <h2>活动时间</h2>
                            <p>开始时间：@activity.begin_time.ToString("D")</p>
                            <p>结束时间：@activity.end_time.ToString("D")</p>
                        </div>
                        <div class="msg msg2">
                            <h2>活动规则</h2>
                            @Html.Raw(activity.detail)
                        </div>
                    </div>
                </div>
                <div class="close" id="close"></div>
            </div>
        </div>
    </div>

    <script src="~/Scripts/token-common.js?v=1"></script>
    <script type="text/javascript">
        $(function () {
            @*var img_url = 'http://' + '@Request.Url.Authority' +'/Content/images/token.png'
            var share_url = 'http://' + '@Request.Url.Authority' + '/ProductActivity/Christmas';
            show_share('', '双旦活动', '双蛋特惠全场9.9元起包邮', share_url)();*@
            $("#rule").click(function (event) {
                $(".mask").css("display", "block");
                $("#activity_modal").addClass('activity_modal_animation')
            });
            $("#close").click(function (event) {
                $(".mask").css("display", "none");
                $("#activity_modal").removeClass('activity_modal_animation')
            });
        })</script>
</body>